package cn.new7as.cas5s.ui.easy.netapi;

import androidx.annotation.NonNull;

import com.hjq.http.annotation.HttpHeader;
import com.hjq.http.config.IRequestApi;

import cn.new7as.cas5s.BuildConfig;

public class SaveBaseDataApi implements IRequestApi {

    @NonNull
    @Override
    public String getApi() {
        return BuildConfig.APPX + "/user/user/saveUserInfo";
    }

    @HttpHeader
    private String token;

    private Data2 referenceInfo;
    private int type;
    private Data1 personInfo;
    private Data3 kycInfo;
    private Data4 bankDetailInfo;

    public SaveBaseDataApi(String psad, Data2 data, int kfbUbjRbzpEekrwChnow, Data1 ps, Data3 zz, Data4 ss) {
        this.token = psad;
        this.referenceInfo = data;
        this.type = kfbUbjRbzpEekrwChnow;
        this.personInfo = ps;
        this.kycInfo = zz;
        this.bankDetailInfo = ss;
    }

    public SaveBaseDataApi() {

    }


    public class Data {
        public Data1 personInfo;

        public Data4 bankDetailInfo;
        public int type;

    }

    public class Data1 {


        public String email;

        public String pinCode;
        public String state;
        public String streetAddress;
        public String townCity;
        public String whatsApp;

    }

    public class Data2 {
        public Data5 reference1;
        public Data5 reference2;
        public Data5 reference3;


    }

    public class Data5 {
        public String fullName;
        public String mobile;
        public int relationship;


    }

    public class Data3 {
        public String aadhaarNo;

        public String cardBackUrl;
        public String cardFrontUrl;
        public String dateOfbirth;
        public String panCardNo;
        public String faceUrl;
        public String fullName;
        public String gender;


    }

    public class Data4 {
        public String code;
        public String confirmNumber;
        public String number;
        public String upi;

    }


}

